#ifndef TERMINAL_PTTY_H
#define TERMINAL_PTTY_H

    typedef struct 
    {
        int fd_master;
        int init;
        int pid_slaver;
    }terminal_ptty_t;

    extern terminal_ptty_t pty;

    int terminal_ptty_init();
    void exit_ptty();
    void terminal_ptty_setup(pid_t pid);
    int terminal_ptty_launch(terminal_ptty_t *pty,char *pathname);
    int terminal_ptty_exit(terminal_ptty_t *pty);

#endif